/**
 * 
 */
package de.cbf.cam.dsa.entity.edit.sf.persister.db4o.server;

import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.entity.edit.sf.persister.db4o.server.act.ActivatorEntitySf_Db4oServer;
import de.cbf.util.db.db4o.DB4O_Server;
import de.cbf.util.db.db4o.server.interfaces.AbstractLauncherDb4oServer;

/**
 * @author Nebelritter
 *
 */
public class Launcher_EntitySf_Db4oServer extends AbstractLauncherDb4oServer{
	
	private static Launcher_EntitySf_Db4oServer instance;	
	
	public static Launcher_EntitySf_Db4oServer getInstance(){
		if(instance == null){
			instance = new Launcher_EntitySf_Db4oServer();
			instance.server = DB4O_Server.getInstanceWithService();
			instance.displayName = "Server: Entity Sf";
		}
		return instance;
	}

	@Override
	protected IPreferenceStore getPreferenceStoreFromActivator() {		
		return ActivatorEntitySf_Db4oServer.getDefault().getPreferenceStore();
	}
		
	
	
}
